﻿using System;

namespace IceCS.DesignPattern.Core.ObserverPattern.NumberChange
{
    public class BinaryObserver : Observer
    {
        public BinaryObserver()
        {

        }
        public BinaryObserver(Subject subject)
        {
            subject.AddObserver(this);
        }
        public override void Update()
        {
            Console.WriteLine($"Binary String: {Convert.ToString(Subject.State, 2)}");
        }
    }
}
